package com.jingnen.guess_index_server.exception;

public class UserNameExistsException extends RuntimeException {
    private final String userName;

    public UserNameExistsException(String userName) {
        super("用户名 '" + userName + " '已被注册");
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }
}
